import http from '@/utils/request'

export function getShopPayType() {
	return http.get('/shop/order/paytype')
}

export function getOrderByState(params) {
	return http.post('/shop/order/state', params)
}

// 预付款下的新订单
export function getPreOrderNew(params) {
	return http.post('/shop/order/prestatus/new', params)
}

export function getPreOrderComplete(params) {
	return http.post('/shop/order/prestatus/complete', params)
}

// 后付款下的新订单
export function getPostOrderNew(params) {
	return http.post('/shop/order/poststatus/new', params)
}

export function getPostOrderComplete(params) {
	return http.post('/shop/order/poststatus/complete', params)
}

export function getDirectOrder(params) {
	return http.post('/shop/order/status/direct', params)
}